package com.freight.user.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author huyingtai
 */
@Data
public class IdCardDto extends UserDto {

    @ApiModelProperty(value = "联系人电话")
    private String contactPhone;


    @ApiModelProperty(value = "身份证号")
    private String num;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "生日")
    private String birth;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "民族")
    private String nationality;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "身份证起始日期")
    private Date startDate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "身份证结束日期")
    private Date endDate;

    @ApiModelProperty(value = "签发机关")
    private String issue;

    @ApiModelProperty(value = "身份证前置照片地址")
    private String idCardFontPicFileId;

    @ApiModelProperty(value = "身份证后置照片地址")
    private String idCardBackPicFileId;

    @ApiModelProperty(value = "手持身份证照片ID")
    private Long holdIdCardFileId;

}